#!/bin/sh

base=`dirname $0`
app="$base/../../.."
resource="$app/src/main/resources/org/shaka/tools/resources"

cmd=$1

test -z $cmd && echo "Please choose function, 1: sort and uniq properties content, 2: remove the same content with key and value.  (1|2)?"  && exit 1

case $cmd in
    1 )
        cat $resource/ts_mapping.properties | sort | uniq
        ;;
    2 )
        cat $resource/ts_mapping.properties | awk -F '=' '{if ( $1 == $2 ) { } else { print $0 }}'
        ;;
esac